<style>
.lookupRepairOrder span.error{
    position:absolute     !important;

    left:257px;
}
</style>
<div class="pageContent">
    <form method="post" action="${rc.getContextPath()}/manage/spotInspection/saveSpotInspection"
            class="pageForm required-validate" enctype="multipart/form-data"
            onsubmit="return iframeCallback(this,dialogAjaxDone);"
        >
        <div class="pageFormContent"   >
            <input type="hidden" name="navTabId" value="${navTabId!''}">
            <input type="hidden" name="id" value="<#if (spotInspection.id)??>${spotInspection.id!''}</#if>" />
            <input type="hidden" name="pattern" value="${pattern!''}" />
                
            <fieldset>
                <dl>
                    <dt><@label key="equipmentCode.C,colon">设备编号：</@label></dt>
                    <dd>
                      <input class="required" id="equipmentLookup.equipmentCode" name="equipmentCode" readonly="readonly" type="text" postField="equipmentCode" suggestFields="equipmentCode,equipmentText" 
                        value="${spotInspection.equipmentCode!''}"
                    </dd>
                </dl>
                <dl>
                    <dt><@label key='equipmentText.C,colon'>设备描述：</@label></dt>
                    <dd><input id="equipmentLookup.equipmentText" readonly="readonly" size="22" type="text" maxlength="60" name="equipmentText" value="${spotInspection.equipmentText!''}" />
                    </dd>
                </dl>
               <dl>
                    <dt><@label key='inspectDateTime.C,colon'>点检时间：</@label></dt>
                    <dd ><input type="text" class="required"   readonly="readonly" size="17"   name="inspectDateTime" 
                            value="${(spotInspection.inspectDateTime?string('yyyy-MM-dd HH:mm:ss'))?if_exists}" dateFmt="yyyy-MM-dd HH:mm:ss"/>
                    </dd>
                </dl>
                <dl>
                    <dt><@label key='inspectResultFlag.C,colon'>点检结果：</@label></dt>
                    <dd>
                        <select name="inspectResultFlag" disabled="disabled">
                            <option value="0"<#if spotInspection.inspectResultFlag?? && spotInspection.inspectResultFlag == 0> selected="selected"</#if>>OK</option>
                            <option value="1"<#if spotInspection.inspectResultFlag?? && spotInspection.inspectResultFlag == 1> selected="selected"</#if>>NG</option>
                        </select>
                    </dd>
                </dl>
                <dl style="width:600px;height:90px;float:left;">
                    <dt><@label key='memo.C,colon'>备注：</@label></dt>
                    <dd>
                        <textarea readonly="readonly" style="width:435px;position:absolute;left:110px;" name="memo"  maxlength="200" value="${spotInspection.memo!''}" rows="4"><#if (spotInspection.memo)??>${spotInspection.memo!''}</#if></textarea>
                    </dd>
                </dl>
                
                <dl style="margin-top:15px;padding:0;height:50px;width:560px;border-color: #d8dfe5; border-style: solid;border-width: 1px;">
                <table class="table" width="100%" id="inspectionAttachMentTable">
                            <thead>
                                <tr>
                                    <th width="100px"><@label key='fileName.C'>文件名称</@label></th>
                                    <th width="100px"><@label key='fileSize.C'>文件大小(bytes)</@label></th>
                                    <th width="50px"><@label key="opera.C">操作</@label></th>
                                </tr>
                            </thead>
                            <tbody>
                                <#if attachmentFile.attachmentCode??>
                                    <tr id="${attachmentFile.attachmentCode!''}" target="file_code" rel="${attachmentFile.fileName!''}">
                                        <td width="100">${attachmentFile.fileName!''}</td>
                                        <td width="100">${attachmentFile.fileSize!''}</td>
                                        <td width="100">
                                        <a class='btnAttach' href="${rc.getContextPath()}/manage/common/downloadAttachement?fileName=${attachmentFile.fileName!''}&attachmentCode=${attachmentFile.attachmentCode!''}"></a>
                                        </td>
                                    </tr>
                                </#if>
                            </tbody>
                        </table>
                </dl>
            </fieldset>
        </div>
        <#if pattern!="add" && spotInspection??>
            <#assign createInfo=spotInspection>
            <#include "/common/createInfo.html">
        </#if>
        <div class="formBar">
            <ul>
                    <li>
                        <div class="buttonActive">
                            <div class="buttonContent">
                                <button type="button" class="close"><@label key="close.B">关闭</@label></button>
                            </div>
                        </div>
                    </li>
            </ul>
        </div>
    </form>
</div>


